<#include "/macro/utils.ftl">
<div id="main">
	<div id="m_info_column">
		<div class="an_wrap">
    		<a href="javascript:window.history.back()" class="btn_back" title="Back">Back</a>
    		<h2 class="movies_name">${show.name}</h2>
   		</div>
	</div>
	<#if seasons??>
		<div id="an_se_box">
			<#list seasons?reverse as season>
			<div id="season${season_index}" class="displayorhide" style="display:<#if season_index==0>block<#else>none</#if>;">
				<div class="tv_sMenu">
		    		<strong>Season:</strong>
		    		<ul>
		    		<#list seasons?reverse as se>
		    			<li <#if se_index==season_index>class="curr"</#if>><a href="javascript:" divId='season${se_index}'>${se.seasonNum}</a></li>
		    		</#list>
		    		</ul>
				</div>
				
				<#assign eps = season.episodes>
				<div class="tv_eCont" style="padding: 0px 0px;">
					<#list eps?reverse as episode>
					<#assign playUrl = contextPath + "/world/featured/tv/watch-" + episode.id>
					<div class="m_box mi_box">
						<div class="img">
							<a href="${playUrl}"><img src="${episode.thumbnail!''}" border="0" title="${episode.episodeName!''}" /></a>
							<div class="tc_btn" style="width:145px; height:90px;display:none">
				                <a href="${playUrl}" class="pbox" title="${episode.episodeName!''}"><span class="btn_play4 pbox_m">Play</span></a>
				                <div class="tc_m">
				                	<span class="dbox m_auto"><a href="javascript:;" itemUrl="${episode.url!''}" itemTitle="${episode.episodeName!''}" class="btn_down4 download_btn">Download</a></span>
				                </div>
				                <div class="i_zz"></div>
			                </div>
						</div>
						<ul>
							<li class="name2"><a href="${playUrl}">Episode ${episode.part}</a></li>
						</ul>
					</div>
					</#list>
				</div>
				<div class="clear"></div>
			</div>
			</#list>
		</div>
	<#else>
		Sorry,no result!
	</#if>
</div>		
